import java.util.Comparator;

public class test {
    private int a=10;
    private int b=20;

    @Override
    public String toString() {
        return super.toString();
    }

    public static void main(String[] args) {
        Comparator<test> s=new Comparator<test>() {
            @Override
            public int compare(test o1, test o2) {
                if(o1.b>o2.a) {
                    return 1;
                } else
                return 0;
            }
        };
        test s1=new test();
        test s2=new test();
        System.out.println(s.compare(s1,s2));
        System.out.println();
    }
}
